body {
    margin: 0;
    font-family: 'Segoe UI', 'PingFang SC', Arial, sans-serif;
    background: #f7f8fa;
}

.container {
    display: flex;
    height: 100vh;
}

.left {
    width: 22%;
    background: #fff;
    padding: 20px;
    box-shadow: 2px 0 8px #eee;
    overflow-y: visible;
}

.right {
    flex: 1;
    padding: 15px 25px;
    overflow-y: auto;
}

h2 {
    margin-top: 0;
    color: #2d6cdf;
}

h3 {
    color: #444;
    margin-bottom: 8px;
    margin-top: 8px;
}

h4 {
    color: #444;
    margin-bottom: 8px;
    margin-top: 8px;
}

.okr-kr {
    margin-bottom: 18px;
}

.progress-bar-bg {
    background: #e0e6ed;
    border-radius: 8px;
    height: 10px;
    width: 100%;
    position: relative;
}

.progress-bar {
    background: #2d6cdf;
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s;
}

.progress-bar.green {
    background: #3ec06c;
}

.progress-label {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    vertical-align: middle;
    margin-left: 0;
    margin-top: 0;
}

.okr-tooltip {
    position: relative;
    cursor: pointer;
}

.okr-tooltip .okr-tooltip-text {
    visibility: hidden;
    width: 220px;
    background: #222;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    bottom: 130%;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
}

.okr-tooltip:hover .okr-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.okr-collapse {
    cursor: pointer;
    color: #444;
    font-size: 15px;
    margin-bottom: 10px;
    display: inline-block;
}

.okr-collapsed {
    display: none;
}

.calendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #e0e6ed;
    padding: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-header h3 {
    margin: 0;
    color: #2d6cdf;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th, .calendar-table td {
    width: 14.28%;
    height: 90px;
    border: 1px solid #e0e6ed;
    text-align: left;
    vertical-align: top;
    padding: 6px;
    background: #fafbfc;
}

.calendar-table th {
    background: #f0f4fa;
    color: #444;
    font-weight: 500;
}

.calendar-event {
    background: #e3f0ff;
    color: #2d6cdf;
    border-radius: 6px;
    padding: 0.25rem;
    line-height: 1rem;
    margin-top: 4px;
    font-size: 13px;
    display: block;
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
}

.calendar-event.red {
    background: #ffe3e3;
    color: #d7263d;
    font-weight: bold;
}

.calendar-event.blue {
    background: #e3f0ff;
    color: #2d6cdf;
}

.calendar-event.green {
    background: rgb(220 252 231 / var(--tw-bg-opacity, 1));
    color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}

.calendar-event.yellow {
    background: rgb(254 249 195 / var(--tw-bg-opacity, 1));
    color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}

.calendar-event.purple {
    background: rgb(243 232 255 / var(--tw-bg-opacity, 1));
    color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}

.calendar-event.pink {
    background: rgb(252 231 243 / var(--tw-bg-opacity, 1));
    color: rgb(157 23 77 / var(--tw-text-opacity, 1));
}

.calendar-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2d6cdf;
    border-radius: 50%;
    margin-right: 4px;
}

.calendar-note {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.okr-label {
    display: inline-block;
    min-width: 80px;
    font-size: 13px;
    color: #2d6cdf;
    font-weight: 500;
    margin-right: 0;
    vertical-align: middle;
    margin-top: 4px;
}

.okr-kr-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.calendar-table td.monday {
    height: 45px;
}

.calendar-table tr.first-row td {
    height: 45px !important;
}

.calendar-table thead tr th {
    height: 25px;
}

.okr-circle-progress {
    width: 48px;
    height: 48px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.okr-circle-text {
    font-size: 12px;
    fill: #2d6cdf;
    font-weight: bold;
    dominant-baseline: middle;
    text-anchor: middle;
}

.okr-section {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.okr-kr {
    margin-bottom: 18px;
    width: 45%; /* Adjusted for better spacing */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#kr1-content, #kr2-content, #kr3-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
}

#kr1-content .okr-kr, #kr2-content .okr-kr, #kr3-content .okr-kr {
    width: 48%;
    margin-bottom: 10px;
}

/* --- MODIFICATION START --- */
.okr-progress-section h4 {
    width: 100%; /* Ensure title takes full width */
}

.okr-progress-section .okr-kr {
    flex-direction: column;
    align-items: stretch; /* Stretch items to fill width */
}

.okr-progress-section .okr-kr-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px; /* Add some space between labels and progress bar */
}

.okr-progress-section .okr-label {
    text-align: left;
    margin: 0;
}

.okr-progress-section .progress-label {
    text-align: right;
    margin: 0;
    min-width: unset; /* Unset min-width for flexible alignment */
}

.today {
    position: relative;
}

.dot {
    position: absolute;
    top: 0;
    right: 10px;
}

/* --- MODIFICATION END --- */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .left, .right {
        width: 100%;
        height: auto;
        box-shadow: none;
        padding: 16px;
    }

    .okr-section {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .okr-kr {
        width: 100%;
        max-width: 100%;
    }

    /* Full width on smaller screens */
}